import {get, post, put} from "@/utils/request";

//查找所有订单信息
export const orderList = (userId) => get("/order/order/orderList?userId=" + userId);

//查找某个订单信息
export const findOrderById = (orderId) => get("/order/order/findOrderById?orderId=" + orderId);

//查找这个订单的司机信息
export const findDriveById = (driverId) => get("/order/order/findDriverById?driverId=" + driverId);

//添加订单投诉内容
export const insertComplain = (data) => post("/order/order/insertComplain", data);

//查找订单投诉内容
export const getComplain = (orderId) => get("/order/order/getComplain?orderId=" + orderId);

//添加评价内容
export const insertUserAppraise = (data) => post("/order/order/insertUserAppraise", data);

//查找评论内容
export const getUserAppraise = (orderId) => get("/order/order/getUserAppraise?orderId=" + orderId);

//修改评价内容
export const UpdateUserAppraise = (data) => put("/order/order/UpdateUserAppraise", data);

//支付成功修改订单
export const updateOrder = (orderId) => get("/order/order/updateOrder?orderId=" + orderId);